// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_img.p_video;

import android.graphics.Bitmap;

// Referenced classes of package com.nnee.p_img.p_video:
//            an, ai

public class cls_f
    implements cls_an
{

    public cls_f(int i)
    {
        a = new cls_ai[i];
        for(int j = 0; j < a.length; j++)
            a[j] = new cls_ai();

    }

    private cls_ai c(int i)
    {
    	cls_ai aai[];
        int j;
        int k;
        aai = a;
        j = aai.length;
        k = 0;
        cls_ai ai1=null;
while (true)
{
	
        if(k >= j)
        	return ai1;
       ai1 = aai[k];
        if(i != ai1.a) {
        	k++;
        	continue;
        } else {return ai1;}
}
    }

    /**
     * @deprecated Method a is deprecated
     */

    public Bitmap a(int i)
    {
      
        Bitmap bitmap;
        cls_ai ai1 = c(i);
        if(ai1 == null)
            return null;
        bitmap = ai1.b;
 
        return bitmap;
        
    }

    /**
     * @deprecated Method a is deprecated
     */

    public void a()
    {
         
        cls_ai aai[];
        int i;
        int j;
        aai = a;
        i = aai.length;
        j = 0;
while(true)
{
        if(j >= i)
            break  ;
        cls_ai ai1 = aai[j];
        if(ai1.b != null)
            ai1.b.recycle();
        ai1.a();
        j++;
}
    }

    /**
     * @deprecated Method a is deprecated
     */

    public void a(int i, Bitmap bitmap)
    {
        
        cls_ai ai1 = c(i);
        if(ai1 == null){
        	cls_ai ai2 = null;
            cls_ai aai[];
            int j;
            int k;
            int l;
            aai = a;
            j = aai.length;
            k = 0;
            l = -1;
            
            while(true)
            {
            cls_ai ai3;
            if(k >= j)
                return;
            ai3 = aai[k];
            if(ai3.a != -1){
            	 int i1 = Math.abs(i - ai3.a);
                 int j1 = i1;
                 cls_ai ai4;
                 if(j1 > l)
                 {
                     ai4 = ai3;
                 } else
                 {
                     j1 = l;
                     ai4 = ai2;
                 }
                 k++;
                 ai2 = ai4;
                 l = j1;
             
            } else {
            	if(ai3.b != null)
                    ai3.b.recycle();
                ai3.a = i;
                ai3.b = bitmap;
                return;
            }
            }
        } 
 
    }

    /**
     * @deprecated Method a is deprecated
     */

    public void a(Bitmap bitmap)
    {
        
        cls_ai aai[];
        int i;
        int j;
        aai = a;
        i = aai.length;
        j = 0;
while(true)
{
        if(j >= i) {
        	 bitmap.recycle();
        	 return;
        } else {
        	cls_ai ai1 = aai[j];
            if(ai1.a == -1) {
            	j++;
            	continue;
            } else{
            	Bitmap bitmap1 = ai1.b;
                if(bitmap1 != bitmap) {
                	j++;
                	continue;
                } else {
                	return;
                }
            }
        }
}
 
    }

    /**
     * @deprecated Method b is deprecated
     */

    public boolean b(int i)
    {
         
        cls_ai ai1 = c(i);
        boolean flag;
        if(ai1 != null)
            flag = true;
        else
            flag = false;
        
        return flag;
        
    }

    private final cls_ai a[];
}
